﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PMS.BLL
{
    public class Depot
    {
        private readonly DAL.DepotDAL depdal = new PMS.DAL.DepotDAL();
        public bool Insert(Model.Depot dep)
        {
            if (depdal.IsExist(dep.DepotName))
            {
                return false;
            }
            else
            {
                return depdal.Insert(dep);
            }
        }
        public IList<Model.Depot> GetAllList()
        {
            return depdal.GetList();
        }
    }
}
